package com.qf.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("t_car")
public class Car {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer gid;

    private Integer uid;

    private Integer sum;

    @TableField(value = "sub_total")
    private BigDecimal subTotal;

    @TableField(exist = false) // 表中没有goods这里一例
    private Goods goods; // 商品的信息
}
